package com.dev.drawweb.model.pojo;

public class Student {
    int stuid;
    String password;
    String stuname;
    String major;
    int score;
    int drawres;




    public Student() {
    }

    public Student(int stuid, String password) {
        this.stuid = stuid;
        this.password = password;
    }

    public Student(int stuid, String password, String stuname, String major) {
        this.stuid = stuid;
        this.password = password;
        this.stuname = stuname;
        this.major = major;
    }

    public Student(int stuid, String password, String stuname, int score, String major, int drawres) {
        this.stuid = stuid;
        this.password = password;
        this.stuname = stuname;
        this.score = score;
        this.major = major;
        this.drawres = drawres;
    }

    public int getStuid() {
        return stuid;
    }

    public void setStuid(int stuid) {
        this.stuid = stuid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStuname() {
        return stuname;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public int getDrawres() {
        return drawres;
    }

    public void setDrawres(int drawres) {
        this.drawres = drawres;
    }

    @Override
    public String toString() {
        return stuid+","+stuname+","+major+","+drawres+","+score+"\n";
    }
}
